/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 */
package com.jeesite.modules.orderlist.entity;

import org.hibernate.validator.constraints.Length;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;
import com.jeesite.common.mybatis.mapper.query.QueryType;

/**
 * js_orderlistEntity
 * @author 达芬奇
 * @version 2019-10-05
 */
@Table(name="${_prefix}orderlist", alias="a", columns={
		@Column(name="id", attrName="id", label="记录编号", isPK=true),
		@Column(name="uid", attrName="uid", label="用户编号"),
		@Column(name="goodid", attrName="goodid", label="商品编号"),
		@Column(name="goodname", attrName="goodname", label="商品名"),
		@Column(name="goodnum", attrName="goodnum", label="商品数量"),
		@Column(name="goodstotalprice", attrName="goodstotalprice", label="商品总价"),
		@Column(name="address", attrName="address", label="收货地址"),
		@Column(name="state", attrName="state", label="商品状态"),
	}, orderBy="a.id DESC"
)
public class Orderlist extends DataEntity<Orderlist> {
	
	private static final long serialVersionUID = 1L;
	private String uid;		// 用户编号
	private String goodid;		// 商品编号
	private String goodname;		// 商品名
	private Integer goodnum;		// 商品数量
	private Double goodstotalprice;		// 商品总价
	private String address;		// 收货地址
	private Integer state;		// 商品状态
	
	public Orderlist() {
		this(null);
	}

	public Orderlist(String id){
		super(id);
	}
	
	@Length(min=0, max=255, message="用户编号长度不能超过 255 个字符")
	public String getUid() {
		return uid;
	}

	public void setUid(String uid) {
		this.uid = uid;
	}
	
	@Length(min=0, max=255, message="商品编号长度不能超过 255 个字符")
	public String getGoodid() {
		return goodid;
	}

	public void setGoodid(String goodid) {
		this.goodid = goodid;
	}
	
	@Length(min=0, max=255, message="商品名长度不能超过 255 个字符")
	public String getGoodname() {
		return goodname;
	}

	public void setGoodname(String goodname) {
		this.goodname = goodname;
	}
	
	public Integer getGoodnum() {
		return goodnum;
	}

	public void setGoodnum(Integer goodnum) {
		this.goodnum = goodnum;
	}
	
	public Double getGoodstotalprice() {
		return goodstotalprice;
	}

	public void setGoodstotalprice(Double goodstotalprice) {
		this.goodstotalprice = goodstotalprice;
	}
	
	@Length(min=0, max=255, message="收货地址长度不能超过 255 个字符")
	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}
	
	public Integer getState() {
		return state;
	}

	public void setState(Integer state) {
		this.state = state;
	}
	
}